from rest_framework.pagination import PageNumberPagination


class Mypage(PageNumberPagination):
    # 默认数据条数
    page_size = 10
    # 传参的字段
    page_query_param = 'page_num'
    page_size_query_param = 'page_size'
    # 最大请求数据条数
    max_page_size = 50
    # 排序
    # ordering = ['id']